<?php
namespace app\common\entity;

use think\Model;

class Video extends Model
{
    const STATUS_SHOW = 1;
    const STATUS_HIDDEN = 0;

    /**
     * @var string 对应的数据表名
     */
    protected $table = 'video';

    protected $autoWriteTimestamp = false;




    public function updVideoUrl($str){
        $aa = preg_replace("/\/uploads/","../upload",$str);
        return $aa;
    }
}

